<template>
  <div class="hm-button" @click="fn">
    <slot></slot>
  </div>
</template>

<script>
export default {
  methods: {
    fn() {
      this.$emit("click");
    }
  }
};
</script>

<style lang='less' scoped>
.hm-button {
  height: 50px;
  line-height: 50px;
  text-align: center;

  background: red;
  color: #fff;
  font-size: 16px;
  margin: 0 20px;
  border-radius: 25px;
  margin-top: 30px;
}
</style>
